﻿using Engine;

namespace Game
{
    public class BloodBlock : FluidBlock
    {
        public const int Index = 984;

        public new static int MaxLevel = 7;

        public BloodBlock()
            : base(MaxLevel)
        {
        }

        public override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
        {
            Color darkRed;
            Color color = (darkRed = Color.DarkRed);
            darkRed.A = byte.MaxValue;
            Color topColor = color;
            topColor.A = 0;
            GenerateFluidTerrainVertices(generator, value, x, y, z, darkRed, topColor, geometry.TransparentSubsetsByFace);
        }
    }
}